From: David Bauer Date: Sun, 22 Mar 2020 00:01:26 +0000 (+0100) Subject: iwinfo: add missing HT modename for HT-None X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=9f5a7c4f9b78cb2de8fe5dd7af55bf0221706402;p=project%2Fiwinfo.git iwinfo: add missing HT modename for HT-None Commit bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") increased IWINFO_HTMODE_COUNT but left the size of the IWINFO_HTMODE_NAMES array untouched, leading to a segmentation fault when trying to get the HT modelist from Lua. Add a dummy NOHT modestring to make the array size fit the size declaration. Fixes: bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") Signed-off-by: David Bauer --- diff --git a/iwinfo_lib.c b/iwinfo_lib.c index fa9bb9f..7a33a35 100644 --- a/iwinfo_lib.c +++ b/iwinfo_lib.c @@ -65,6 +65,7 @@ const char *IWINFO_HTMODE_NAMES[] = { "VHT80", "VHT80+80", "VHT160", + "NOHT" };